﻿@{
    ViewBag.Title = "PreparBlankRecord";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
 
<link href="~/Content/css/WareHouseStorage.css" type="text/css" rel="stylesheet" />
<script>
    var moduleId = $.request("moduleId");
    $(function () {
        gridList();
    })
    function gridList() {
        $("#gridList").dataGrid({
            treeGrid: true,
            treeGridModel: "adjacency",
            ExpandColumn: "F_Location",
            url: "/SystemManage/ModuleButton/GetTreeGridJson?moduleId=" + moduleId,
            height: $(window).height() - 90,
            colModel: [
               {
                   label: "<img src='../../Content/img/checkokmark.gif'/> 全选", name: 'F_JsEvent', width: 60, align: 'left',
                   formatter: function (cellvalue) {
                       if (cellvalue == 1) {
                           return "<img src='../../Content/img/checkokmark.gif'/>";
                       } else {
                           return "<img src='../../Content/img/checknomark.gif'/>";
                       }
                   }
               },
            { label: "发生方式", name: "F_FullName", width: 120, align: 'left' },
            { label: "单据编号", name: "F_FullName", width: 120, align: 'left' },
            { label: '单据日期', name: 'F_FullName', width: 100, align: 'left' },
            { label: '来料单位', name: 'F_Location', width: 80, align: 'left' },
            { label: '来料单位名称', name: 'F_JsEvent', width: 100, align: 'left' },
            { label: '开票总数', name: 'F_Split', width: 80, align: 'left' },
            { label: '实际总数', name: 'F_Split', width: 80, align: 'left' },
            { label: '开票总价', name: 'F_IsPublic', width: 80, align: 'left' },
            { label: '实际总价', name: 'F_AllowEdit', width: 80, align: 'left' },
            { label: '凭证编号', name: 'F_AllowDelete', width: 80, align: 'left' },
            { label: '备注', name: 'F_AllowEdit', width: 80, align: 'left' },
            { label: '审核状态', name: 'F_AllowDelete', width: 80, align: 'left' },
            { label: '输入人员', name: 'F_Split', width: 80, align: 'left' },
            { label: '输入日期', name: 'F_Split', width: 80, align: 'left' },
            { label: '输入时间', name: 'F_IsPublic', width: 80, align: 'left' },
            { label: '审核人', name: 'F_AllowEdit', width: 80, align: 'left' },
            { label: '审核日期', name: 'F_AllowDelete', width: 80, align: 'left' },
            { label: '审核时间', name: 'F_Split', width: 80, align: 'left' }
            ]
        });
    }
    function btn_Add() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/PreparBlank/PreparBlankRecordInput"
        });
    }
    function btn_Check() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/PreparBlank/PreparBlankRecordCheck"
        });
    }
    function btn_Record() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/PreparBlank/PreparBlandEnterRecord"
        });
    }
    function btn_Bill() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/PreparBlank/PreparBlankRecordBill"
        });
    }

    function btn_Delete() {
        alert("确定要删除吗？");//在页面上弹出上联
    }

    function btn_Excel() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/Export/WareHouseNoticeExcel"
        });
    }
    function btn_Print() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/Print/WareHouseNoticePrint"
        });
    }
    function btn_Modi() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/PreparBlank/PreparBlankRecordModi"
        });
    }
</script>

<body>
    <div id="topinfo01">
        来料单位
        <div style="margin-top:2px;">
            <select style="width:119px;height:20px">
                <option value="">==请选择==</option>
                <option value="东风公司">东风公司</option>
                <option value="东风江森">东风江森</option>
                <option value="东风伟世通">东风伟世通</option>
                <option value="东风李尔">东风李尔</option>
            </select>
        </div>
    </div>
    <div id="topinfo02">
        <div style="margin-top:0px; margin-left:1px">
            <nobr>
                <p class="spread1">
                    零件编号
                    &nbsp&nbsp来料日期
                    &nbsp&nbsp容器
                    <br />
                </p>
            </nobr>
        </div>
        <div style="margin-top:-8px;">
            <nobr>
                <p class="spread2">
                    <input name="address" type="date" value="" size="15" maxlength="5">
                    <input name="address" type="text" value="" size="15" maxlength="5">
                    <input name="address" type="text" value="" size="15" maxlength="5">
                </p>
            </nobr>
        </div>
    </div>
    <div id="topinfo03">
        <div class="btn-group" style="margin-top:-8px;">
            <br />    <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-search"></span>&nbsp查询</a>
        </div>
    </div>
    <div id="topinfo04">
        <div class="btn-group" style="margin-top:-8px;">
            <br />
            <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
            <a class="btn btn-primary center-block" onclick="btn_Add()">   <span class="glyphicon glyphicon-plus">    </span>&nbsp输入</a>
            <a class="btn btn-primary center-block" onclick="btn_Modi()">  <span class="glyphicon glyphicon-edit">    </span>&nbsp修改</a>
            <a class="btn btn-primary center-block" onclick="btn_Delete()"><span class="glyphicon glyphicon-trash">   </span>&nbsp删除</a>
            <a class="btn btn-primary center-block" onclick="btn_Check()">   <span class="glyphicon glyphicon-plus">    </span>&nbsp审核</a>
            @*<a class="btn btn-primary center-block" onclick="btn_Record()">   <span class="glyphicon glyphicon-plus">    </span>&nbsp档案</a>*@
            <a class="btn btn-primary center-block" onclick="btn_Bill()">   <span class="glyphicon glyphicon-plus">    </span>&nbsp单据</a>
            <a class="btn btn-primary center-block" onclick="btn_Excel()"> <span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
            <a class="btn btn-primary center-block" onclick="btn_Print()"> <span class="glyphicon glyphicon-print">   </span>&nbsp打印</a>
        </div>
    </div>

    <div id="area5">
        <div class="gridPanel">
            <table id="gridList"></table>
        </div>
    </div>
</body>





















